package com.jf3q.sup.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jf3q.sup.domain.Products;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jf3q.sup.dto.ProductsDto;
import com.jf3q.sup.vo.ProductsVo;
import org.apache.ibatis.annotations.Param;
import com.jf3q.sup.vo.products.ProductsAndEchartsMonth;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.jf3q.sup.domain.Products
 */
public interface ProductsMapper extends BaseMapper<Products> {

    Page<ProductsVo>  ClassificationAndDetails(@Param("page") Page<ProductsVo> page,@Param("productsDto") ProductsDto productsDto);
    @Select("select count(*) FROM products")
    int getEchartsCount();


    List<ProductsAndEchartsMonth> getEcharts();

}




